<?php

const CTR = 'Controller';

Route::get('/', function () {
    return view('welcome');
});

/**
 * 前台路由
 */
require 'Routes/home.php';

/**
 * 后台路由
 */
require 'Routes/admin.php';


//生成验证码
Route::group(['middleware'=>'web'], function () {
    //生成验证码
    Route::get('captcha', function () {
        return generate_captcha();
    });

});

